package main

import "fmt"

func main() {
	DoTask("武松", 13)
	fmt.Printf("武松的进度是%d", progressWusong)

	DoTask("鲁智深", 24)
	fmt.Printf("鲁智深的进度是%d", progressWusong)
}

var progressWusong int = 0
var progressLuzhishen int = 0

func DoTask(name string, hours int) {
	fmt.Printf("%s头领带队行军%d个小时\n", name, hours)
	if name == "武松" {
		progressWusong += hours
	} else if name == "鲁智深" {
		progressLuzhishen += hours
	}
}
